//
//  MMA_Macro.h
//  MobileTracking
//
//  Created by Wenqi on 14-3-12.
//  Copyright (c) 2014年 Admaster. All rights reserved.
//

#ifndef MobileTracking_Macro_h
#define MobileTracking_Macro_h

#define MMA_SDK_VERSION @"1.2.7"

#define SEND_QUEUE_IDENTITY @"SEND_QUEUE_IDENTITY"
#define FAILED_QUEUE_IDENTITY @"FAILED_QUEUE_IDENTITY"
#define FAILED_QUEUE_TRY_SEND_COUNT 3

#define SDK_CONFIG_FILE_NAME @"sdkconfig"
#define SDK_CONFIG_FILE_EXT @"xml"
#define SDK_CONFIG_DATA_KEY @"SDK_CONFIG_DATA_KEY"
#define SDK_CONFIG_LAST_UPDATE_KEY @"SDK_CONFIG_LAST_UPDATE_KEY"

#define DEFAULT_FAILED_QUEUE_TIMER_INTERVAL (1  * 30)
#define DEFAULT_SEND_QUEUE_TIMER_INTERVAL (1  * 10)
#define UPDATE_SDK_CONFIG_WIFI_INTERVAL (3  * 24 * 60 * 60)
#define UPDATE_SDK_CONFIG_3G_INTERVAL (1  * 24 * 60 * 60)

#define NETWORK_STATUS_WIFI 1
#define NETWORK_STATUS_3G   0
#define NETWORK_STATUS_NO   2

#define TRACKING_KEY_OS         @"OS"
#define TRACKING_KEY_MAC        @"MAC"
#define TRACKING_KEY_IDFA       @"IDFA"
#define TRACKING_KEY_OPENUDID   @"OPENUDID"
#define TRACKING_KEY_TS         @"TS"
#define TRACKING_KEY_LBS        @"LBS"
#define TRACKING_KEY_OSVS       @"OSVS"
#define TRACKING_KEY_TERM       @"TERM"
#define TRACKING_KEY_WIFI       @"WIFI"
#define TRACKING_KEY_SCWH       @"SCWH"
#define TRACKING_KEY_ADWH       @"ADWH"
#define TRACKING_KEY_AKEY       @"AKEY"
#define TRACKING_KEY_ANAME      @"ANAME"
#define TRACKING_KEY_SDKVS      @"SDKVS"
#define TRACKING_KEY_SIGN       @"SIGN"

#define TRACKING_KEY_OS_VALUE   1

#define IOSV [[[UIDevice currentDevice] systemVersion] floatValue]

#define IOS7 7.0

#define IOS6 6.0

#endif
